<?php
namespace Servidor\ServiceFactory;

use Servidor\Service\AtividadeService;

use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;

/**
 * Class Factory
 * @author DiegoWagner
 *
 */
class AtividadeServiceFactory implements FactoryInterface {


	/**
	 * Método responsável por injetar a dependência do Doctrine no serviço
	 * (non-PHPdoc)
	 * @see \Zend\ServiceManager\FactoryInterface::createService()
	 */
	public function createService( ServiceLocatorInterface $serviceLocator ) {

		return new AtividadeService( $serviceLocator->get('Doctrine\ORM\EntityManager') );
	}
}